package meihua.stopcarapp.ui;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.LinearLayout;
import android.widget.TextView;

import butterknife.Bind;
import butterknife.OnClick;
import meihua.mylibrary.base.BaseActivity;
import meihua.stopcarapp.R;

/***
 * 分享车位2017/5/10
 *
 */
public class SharedParkActivity extends BaseActivity {


    @Bind(R.id.toolbar_center)
    TextView mTitleName;
    @Bind(R.id.tv_real_name)
    TextView mTvRealName;
    @Bind(R.id.ll_real_name)
    LinearLayout mLlRealName;
    @Bind(R.id.tv_phone_number)
    TextView mTvPhoneNumber;
    @Bind(R.id.ll_phone_number)
    LinearLayout mLlPhoneNumber;
    @Bind(R.id.tv_address)
    TextView mTvAddress;
    @Bind(R.id.ll_address)
    LinearLayout mLlAddress;
    @Bind(R.id.btn_share)
    Button mBtnShare;

    /**
     * 入口
     *
     * @param activity
     */
    public static void startAction(Activity activity) {
        Intent intent = new Intent(activity, SharedParkActivity.class);
        activity.startActivity(intent);
    }

    @Override
    public int getLayoutId() {
        return R.layout.activity_shared_park;
    }

    @Override
    public void initPresenter() {

    }

    @Override
    public void initView(Bundle savedInstanceState) {
        mTitleName.setText("共享车位");
    }


    @OnClick({R.id.toolbar_left, R.id.btn_share})
    public void onClick(View view) {
        switch (view.getId()) {
            case R.id.toolbar_left:
                finish();
                break;
            case R.id.btn_share:
                startActivity( SharedParkSuccessActivity.class );
                break;
        }
    }
}
